package com.kude.entity;

import java.util.Date;

public abstract class AbstratArticle {

	public static final String TABLE_NAME = "article";
	public static final String ARTICLE_ID = "article_id";
	public static final String CATEGORY_ID = "category_id";
    public static final String IS_DISPLAY_ON_HOMEPAGE ="isDisplayOnHomepage";

	public AbstratArticle() {
	}

	private Integer articleId;
	private String title;
	private String content;
	private Date time;
	private ArticleCategory articleCategory;
	private Integer isDisplayOnHomePage;
	private String imagePath;


	private String source;
	private int views;

	public AbstratArticle(Integer articleId, String title, String content,
			Date time, ArticleCategory articleCategory, int isDisplayOnHomePage,
			String imagePath, String source, int views) {
		this.articleId = articleId;
		this.title = title;
		this.content = content;
		this.time = time;
		this.articleCategory = articleCategory;
		this.isDisplayOnHomePage = isDisplayOnHomePage;
		this.imagePath = imagePath;
		this.source = source;
		this.views = views;
	}

	public Integer getArticleId() {
		return articleId;
	}

	public void setArticleId(Integer articleId) {
		this.articleId = articleId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}



	public ArticleCategory getArticleCategory() {
		return articleCategory;
	}

	public void setArticleCategory(ArticleCategory articleCategory) {
		this.articleCategory = articleCategory;
	}

	public int getIsDisplayOnHomePage() {
		return isDisplayOnHomePage;
	}

	public void setIsDisplayOnHomePage(Integer isDisplayOnHomePage) {
		this.isDisplayOnHomePage = isDisplayOnHomePage;
	}

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public int getViews() {
		return views;
	}

	public void setViews(int views) {
		this.views = views;
	}

}
